package com.teamwings.modules.buffet.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.teamwings.modules.buffet.mapper.FormTableCtrlSqlMapper;
import com.teamwings.modules.buffet.entity.FormTableCtrlSql;
import com.teamwings.modules.buffet.service.IFormTableCtrlSqlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FormTableCtrlSqlServiceImpl
        extends ServiceImpl<FormTableCtrlSqlMapper, FormTableCtrlSql>
        implements IFormTableCtrlSqlService {

    @Autowired
    private FormTableCtrlSqlMapper formTableCtrlSqlMapper;

    @Override
    public IPage<FormTableCtrlSql> getCommonList(Page<FormTableCtrlSql> page) {
        return formTableCtrlSqlMapper.getCommonList(page);
    }

    @Override
    public IPage<FormTableCtrlSql> getListByCtrl(Page<FormTableCtrlSql> page, String ctrlName) {
        return formTableCtrlSqlMapper.getListByCtrl(page, ctrlName);
    }

    @Override
    public IPage<FormTableCtrlSql> getListByFormTable(Page<FormTableCtrlSql> page, String tableHeadId) {
        return formTableCtrlSqlMapper.getListByFormTable(page, tableHeadId);
    }
}
